<#include "../inc/header.ftl" />
<div class="admin-content">
    <ui id="error" class="message error" style="display:none;"></ui>
    <form id="userForm" name="userForm" method="post" action="${base}/admin/user/edit/do">
        <table class="formtable">
            <tr>
                <td class="label">编号</td>
                <td class="field"><input type="text" class="textinput" readonly name="id" value="${user.id}"/></td>
            </tr>
            <tr>
                <td class="label">昵称</td>
                <td class="field"><input type="text" class="textinput" name="nickname" value="${user.nickname}"/></td>
            </tr>
            <tr>
                <td class="label">用户名</td>
                <td class="field"><input type="text" class="textinput" name="username" value="${user.username}"/></td>
            </tr>
            <tr>
                <td class="label">邮箱</td>
                <td class="field"><input type="text" class="textinput" name="email" value="${user.email}"/></td>
            </tr>
            <tr>
                <td class="label">创建时间</td>
                <td class="field"><input type="text" class="textinput" disabled="disabled" name="createTime"
                                         value="${user.createTime?datetime}"/></td>
            </tr>
            <tr>
                <td colspan="2" class="toolbar">
                    <input class="btn btn-default" type="submit" value="修改资料"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        admin.user.validateForm();
    });
</script>
<#include "../inc/footer.ftl" />